package com.moneywelcome.api;

import com.moneywelcome.results.Result;
import com.moneywelcome.vo.ComputeVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.io.FileNotFoundException;

@FeignClient(
        contextId = "ApplicationScorecardApi",//服务名字
        value = "risk" // 区分不同client
)
public interface ApplicationScorecardApi {

    @PostMapping("score")
    Result computeScore(@RequestBody ComputeVo vo) throws FileNotFoundException;
}
